<!doctype html>
<html>
<head>
    <title>列表页面</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
</head>
<body>
<div id="mainContent" class="wrap">
    <div class="h_a">搜索</div>
    <div class="search_type cc mb10">
        <form action="<?php $form_url;?>" method="get">
            <div class="ul_wrap">
                <label>关键字：</label>
                <input type="text" class="input length_3" name="word"  value="<?php if(!empty($condition['word'])) echo $condition['word'] ;?>" placeholder='登录名/昵称/手机/邮箱'>
                <input type="checkbox" name="status" value="1" <?php if($condition['status']=='1') echo "checked" ;?>>查看禁用账号
                <input type="checkbox" name="tl_status" value="1" <?php if($condition['tl_status']=='1') echo "checked" ;?>>查看同业账号
                        <button class="btn" type="submit">搜索</button>
            </div>
        </form>
    </div>
    <div class="nav">
        <ul>

            <li style="display:none"><a class="icon-remove-2" href="javascript:;" title="删除" onclick="tools_submit({action:'<?php echo site_url('member/admin/delete_member');?>',msg:'确定要删除该信息么?'})">删除</a></li>
            <li><a href='<?php echo URLPRE?>member/admin/add_member/' class="icon-plus" >添加</a></li>
        </ul>
    </div>
    <div class="h_a">会员列表</div>
    <div id="content" class="table_full">
        <form method="post" action="<?php echo URLPRE?>member/admin/delete_member/">

            <table data-uri="<?php echo site_url('member/admin/member_status');?>">
                <tr>

                    <th style="width:1%;display:none"><li style="display:none"><a data="true" title="全选" onclick="tools_select('id[]',this)" href="javascript:;" class="icon-checkbox-checked icon-checkbox-unchecked"> 全选 </a></li></th>
                    <th style="width:2%;">ID</th>
                    <th style="width:6%;">用户名</th>
                    <th style="width:4%;">手机</th>
                    <th style="width:4%;">邮箱</th>
                    <th style="width:4%;">注册时间</th>
                    <th style="width:4%;">登录时间</th>
                    <th style="width:4%;">注册IP</th>
                    <th style="width:4%;">登录IP</th>
                    <th style="width:4%;">状态</th>
                    <th style="width:4%;text-align: center;">同业账号</th>
                    <th style="width:2%;">操作</th>
                </tr>

                <?php foreach($member_array as $k=>$v):?>
                <tr>
                    <td style="width:2%;display:none">
                        <input type="checkbox" value="<?php echo $v['user_id'];?>" name="id[]">

                    </td>

                    <td><a href="<?php echo site_url('/member/admin/edit_member/'.$v['user_id']);?>"><?php echo $v['user_id'];?></a></td>
                    <td style="width:6%;"><?php echo $v['username'];?></td>
                    <td style="width:4%;"><?php echo $v['mobile'];?></td>
                    <td style="width:4%;"><?php echo $v['email'];?></td>
                    <td style="width:4%;"><?php echo $v['reg_date'];?></td>
                    <td style="width:4%;"><?php echo $v['login_date'];?></td>
                    <td style="width:4%;"><?php echo $v['reg_ip'];?></td>
                    <td style="width:4%;"><?php echo $v['login_ip'];?></td>
                    <td style="width:4%;">
                        <img class="pointer" data-id="<?php echo $v['user_id'];?>" style="cursor: pointer;" data-field="status" data-value="<?php echo $v['status'];?>" src="<?php echo URLPRE;?>static/admin/images/icons/icon_<?php echo $v['status'];?>.png" />
                    </td>
                    <td style="width:4%;text-align: center;">
                        <?php if($v['tl_status']) { ;?>
                        <img class="verify" data-id="<?php echo $v['user_id'];?>" style="cursor: pointer;" data-field="tl_status" data-value="<?php echo $v['tl_status'];?>" src="<?php echo URLPRE;?>static/admin/images/icons/icon_<?php echo $v['tl_status']>1 ? 1 : 0;?>.png" />
                        <?php } else { ?>
                            /
                        <?php } ?>
                    </td>
                    <td style="width:4%" class="btn_min">
                        <a class="icon-pencil" href="<?php echo site_url('/member/admin/edit_member/'.$v['user_id']);?>">编辑</a>
                        <a class="icon-remove-2 doDel" href="javascript:;" data-uri="<?php echo site_url('member/admin/delete_member?id='.$v['user_id']);?>">删除</a>
                    </td>
                </tr>
<?php endforeach ;?>



            </table>
        </form>
        <div class="page_nav">
            <?php echo $this->mypageclass->show(2); ?>
        </div>
    </div>
</div>

</body>
</html>